package com.maserb.monitor.repository.JwQuestion;

import com.maserb.monitor.entity.jwQuestion.JwQuestionItemEntity;
import com.maserb.monitor.entity.jwQuestion.JwQuestionOptionEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface JwQuestionOptionRepository extends JpaSpecificationExecutor<JwQuestionOptionEntity>
        , PagingAndSortingRepository<JwQuestionOptionEntity, String> {
    List<JwQuestionOptionEntity> findByParent(JwQuestionItemEntity parent);
}